package com.express.dao;

import com.express.bean.Express;
import com.express.bean.User;

import java.util.List;
import java.util.Map;

/**
 * @Author: laixiangdong
 * @Date 2020/12/08
 */
public interface BaseUserDao {
    Map<String, Integer> console();

    List<User> findAll(boolean limit, int offset, int pageNumber);

    User findByPhone(String phone);

    Boolean insert(User user);

    Boolean update(int id, User newUser);

    Boolean delete(int id);
}
